package com.hoshiibuy.dictionary.controller;


import com.hoshiibuy.dictionary.service.IDicOccupClsService;
import com.hoshiibuy.dictionary.entity.DicOccupClsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author guangjinwei
 * @create 2019-04-18
 */
@RestController
@RequestMapping("dicOccupCls/")
@Api(value = "职业信息管理", tags = {"职业信息操作接口"})
public class DicOccupClsController {
    @Autowired
    IDicOccupClsService dicOccupClsService;

    @RequestMapping(value = "/saveDicIndCls", method = RequestMethod.POST)
    @ApiOperation(
            value = "保存职业信息",
            notes = "保存职业信息",
            produces = "application/json, application/xml",
            consumes = "application/json, application/xml")
    public void saveDicOccupCls(DicOccupClsVo dicOccupClsVo){

        dicOccupClsService.saveDicOccupCls(dicOccupClsVo);
    }

    @RequestMapping(value = "/findDicOccupClsList", method = RequestMethod.GET)
    @ApiOperation(
            value = "查询职业信息",
            notes = "查询职业信息",
            produces = "application/json, application/xml",
            consumes = "application/json, application/xml")
    public List<DicOccupClsVo> findDicOccupClsList(){

        return dicOccupClsService.findDicOccupClsList();
    }
}

